﻿using System;
using System.Web.Mvc;
using System.Web.UI;
using System.Web.Routing;

namespace MvcShop.Extensions
{
    public class ExHtmlHelper:HtmlHelper
    {
        public ExHtmlHelper(ViewContext viewContext, IViewDataContainer viewDataContainer, RouteCollection routeCllection)
            : base(viewContext, viewDataContainer, routeCllection)
        { }

        public ViewPage ViewPage { get; private set; }

        public HtmlTextWriter Output
        {
            get
            {
                return this.ViewPage.Writer;
            }
        }
    }  
}
